package com.H1023.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class pageChangeController {

    @RequestMapping("/login/toLogin")
    public String toLogin(){
        return "login";
    }

    @RequestMapping("/login/success")
    public String toSuccess(){
        return "success";
    }

    @RequestMapping("/index")
    public String toIndex(){
        return "index";
    }

    @RequestMapping("/adminLogin")
    public String AdminLogin(Model model){
        model.addAttribute("admin",1);
        return "login";
    }

}
